package pers.agony.dao;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import pers.agony.pojo.CheckGroup;
import pers.agony.pojo.Setmeal;

import java.util.List;

/**
 * @author : Agony
 * @date : Created in 3:55 下午 2021/11/3
 * @Description:
 * @Modified By:
 * @version: : 1.0
 */
@Repository
public interface SetmealDao {
    List<Setmeal> findAll();

    void add(Setmeal setmeal);

    void addSetmealCheckGroup(@Param("setmealId") Integer id,@Param("checkGroupId") int checkgroupId);

    List<String> findAllPic();

    Page findByCondition(String queryString);

    Setmeal findOne(int id);

    List<Integer> findsetmealCheckGroupBysetmealId(int id);

    void update(Setmeal setmeal);

    void deleteSetmealCheckGroup(Integer setmealId);

    void deleteSetmeal(int id);
}
